//
//  CoverViewController.h
//  YLYSCUSTOMER
//
//  Created by IOS002 on 14/12/19.
//  Copyright (c) 2014年 choucheng. All rights reserved.
//

//#import "BasicViewController.h"
#import <UIKit/UIKit.h>
#import "DeepestViewController.h"

#define kMaxResolution 1000

@class CoverView;

@protocol CoverViewControllerDelegate <NSObject>

@optional
- (void)coverViewControllerDidFinishWithImage:(UIImage *)image;

@end

@interface CoverViewController : DeepestViewController
{
    IBOutlet UIView *_coverView;
    IBOutlet UIButton *_btnCancel;
    IBOutlet UIButton *_btnCommit;
    
    UIScrollView *_scrollView;
    UIImageView *_imageView;
}

@property (unsafe_unretained, nonatomic) id<CoverViewControllerDelegate> coverDelegate;
@property (strong, nonatomic) UIImage *originImage;

- (id)initWithImage:(UIImage *)image delegate:(id)delegate;

@end
